export const machConfig = {
    data() {
        return {
            workStrategy:'',//工时计算策略
            oilStrategy:'',//油位计算策略
            gpsTypeCode:'',//围栏类型id
            gpsTypeModal:false,//围栏类型
            gpsTypeArr:[],//后台返回类型
            gpsTypeList:[
                {
                    code:'car_fence',
                    name:'车辆类型'
                },
                {
                    code:'ship_fence',
                    name:'船舶类型'
                }
            ]
        }
    },
    methods: {
        //添加围栏类型
        setGpsType(){
            if(this.gpsTypeCode == ''){
                this.$Modal.warning({
                    title: "提示",
                    content: "请选择电子围栏类型"
                });
                return;
            }
            this.gpsTypeArr.push(this.gpsTypeCode)
            this.gpsTypeModal = false;
        }
    },

}
